package com.geso.code_generator.model;

import com.geso.code_generator.utils.GeneratorUtils;

public class ColumnInfo {
	
	private String columnName;
	
	private String columnType;
	
	private String columnComment;
	
	private String classAttribute;
	
	private String attributeType;
	

	public ColumnInfo() {
		super();
	}

	public ColumnInfo(String columnName, String columnType, String columnComment) {
		super();
		this.columnName = columnName;
		this.columnType = columnType;
		this.columnComment = columnComment;
		this.classAttribute = GeneratorUtils.column2Attribute(columnName);
		this.attributeType = GeneratorUtils.columnType2AttributeType(columnType);
	}

	

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getColumnType() {
		return columnType;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public String getColumnComment() {
		return columnComment;
	}

	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}

	public String getClassAttribute() {
		return classAttribute;
	}

	public void setClassAttribute(String classAttribute) {
		this.classAttribute = classAttribute;
	}

	public String getAttributeType() {
		return attributeType;
	}

	public void setAttributeType(String attributeType) {
		this.attributeType = attributeType;
	}
	

}
